#! /usr/bin/env bash
# Here we setup the environment variables needed by the tinyos 
# make system

echo "Setting up environment for TinyOS 2.1.1 and Avrora"
export TOSROOT=
export TOSDIR=
export MAKERULES=
export AVRORA=

#you'll need to enter the approrpiate path to tinyos-2.1.1 here.
TOSROOT="/home/user/src/cs598/tinyos-2.1.1"
TOSDIR="$TOSROOT/tos"

#You'll need to enter the appropriate path to avrora here.
alias avrora="java -jar /home/user/src/cs598/avrora.jar"

#This script assumes that you've saved the current version of avrora
#in a file called avrora.jar in the location listed below.
CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:avrora.jar
MAKERULES="$TOSROOT/support/make/Makerules"

export TOSROOT
export TOSDIR
export CLASSPATH
export MAKERULES
export AVRORA
